export default [
    {
        id:1,
        top:[
            {
                'text':'添加用户'
            },
            {
                'text':'更新用户'
            }
        ],
        con:[
            {
                type:'input',
                field:'user_name',
                rules:[
                    {
                        required: true,
                        message: '请输入用户名',
                    }
                ],
                placeholder:'请输入用户名'
            },
            {
                type:'input',
                field:'user_pwd',
                rules:[
                    {
                        required: true,
                        message: '请输入密码',
                    }
                ],
                placeholder:'请输入密码'
            },
            {
                type:'select',
                field:'identity_id',
                rules:[],
                placeholder:'选择身份',
                optionType:'userIdentity',
                text:'identity_text'
            }
        ],
        submitApi:'addUser'
    },
    {
        id:2,
        top:[
            {
                'text':'添加身份'
            }
        ],
        con:[
            {
                type:'input',
                field:'identity_text',
                rules:[
                    {
                        required: true,
                        message: '请输入身份',
                    }
                ],
                placeholder:'请输入身份'
            }
        ],
        submitApi:'addIdentity'
    },
    {
        id:3,
        top:[
            {
                'text':'添加api接口权限'
            }
        ],
        con:[
            {
                type:'input',
                field:'api_authority_text',
                rules:[
                    {
                        required: true,
                        message: '请输入api接口权限名称',
                    }
                ],
                placeholder:'请输入api接口权限名称'
            },
            {
                type:'input',
                field:'api_authority_url',
                rules:[
                    {
                        required: true,
                        message: '请输入api接口权限url',
                    }
                ],
                placeholder:'请输入api接口权限url'
            },
            {
                type:'input',
                field:'api_authority_method',
                rules:[
                    {
                        required: true,
                        message: '请输入api接口权限方法',
                    }
                ],
                placeholder:'请输入api接口权限方法'
            }
        ],
        submitApi:'addAuthorityApi'
    },
    {
        id:4,
        top:[
            {
                'text':'添加视图接口权限'
            }
        ],
        con:[
            {
                type:'select',
                field:'view_id',
                rules:[
                    {
                        required: true,
                        message: '选择已有视图',
                    }
                ],
                placeholder:'选择已有视图',
                optionType:'viewAuthority',
                text:'view_authority_text'
            }
        ],
        submitApi:'addAuthorityView'
    },
    {
        id:5,
        top:[
            {
                'text':'给身份设置api接口权限'
            }
        ],
        con:[
            {
                type:'select',
                field:'identity_id',
                rules:[
                    {
                        required: true,
                        message: '选择身份id',
                    }
                ],
                placeholder:'选择身份id',
                optionType:'userIdentity',
                text:'identity_text'
            },
            {
                type:'select',
                field:'api_authority_id',
                rules:[
                    {
                        required: true,
                        message: '选择api接口',
                    }
                ],
                placeholder:'选择api接口',
                optionType:'apiAuthority',
                text:'api_authority_text'
            }
        ],
        submitApi:'setIdentityApi'
    },
    {
        id:6,
        top:[
            {
                'text':'给身份设置视图权限'
            }
        ],
        con:[
            {
                type:'select',
                field:'identity_id',
                rules:[
                    {
                        required: true,
                        message: '选择身份id',
                    }
                ],
                placeholder:'选择身份id',
                optionType:'userIdentity',
                text:'identity_text'
            },
            {
                type:'select',
                field:'view_authority_id',
                rules:[
                    {
                        required: true,
                        message: '选择视图接口',
                    }
                ],
                placeholder:'选择视图接口',
                optionType:'viewAuthority',
                text:'view_authority_text'
            }
        ],
        submitApi:'setIdentityView'
    }
]